#!/usr/bin/env python
# -*- encoding: utf-8 -*-
# Project: spd-sxmcc
"""
@author: lyndon
@time Created on 2019/2/18 15:24
@desc
"""

#!/usr/bin/env python
#-*-coding:utf-8-*-
__author__ = 'Eva_J'
#
# import threading
# lock = threading.Lock() #Lock对象
# lock.acquire()
# lock.acquire()  #产生了死锁。
# print('---')
# lock.release()
# lock.release()


import threading
rLock = threading.RLock()  #RLock对象
rLock.acquire()
rLock.acquire() #在同一线程内，程序不会堵塞。
rLock.release()
rLock.release()

